const express = require('express');
const controller = require('../controllers/downloadController');

const router = express.Router();

router.post('/', controller.create);
router.post('/:id/run', controller.trigger);
router.get('/:id', controller.getOne);
router.get('/', controller.list);
router.get('/:id/logs', controller.logs);

module.exports = router;


